package com.github.baichuan.web.security;

import java.util.Collection;

/**
 * 授权信息
 */
public interface PrincipalPayload {

    String memberUid();

    Collection<String> getAuthorizations();

    /**
     * 检查是否拥有指定的权限
     * @param authorization
     * @return
     */
    boolean check(Authorization authorization);
}
